home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / gfx / gfxIFormats.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  2KB  |  126 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM gfxIFormats.idl
  3.  */
  4.  
  5. #ifndef __gen_gfxIFormats_h__
  6. #define __gen_gfxIFormats_h__
  7.  
  8.  
  9. #ifndef __gen_gfxtypes_h__
  10. #include "gfxtypes.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    gfxIFormats */
  19. #define GFXIFORMATS_IID_STR "96d086e6-1dd1-11b2-b6b2-b77b59390247"
  20.  
  21. #define GFXIFORMATS_IID \
  22.   {0x96d086e6, 0x1dd1, 0x11b2, \
  23.     { 0xb6, 0xb2, 0xb7, 0x7b, 0x59, 0x39, 0x02, 0x47 }}
  24.  
  25. /**
  26.  * gfxIFormats interface
  27.  *
  28.  * @author Tim Rowley <tor@cs.brown.edu>
  29.  * @author Stuart Parmenter <pavlov@netscape.com>
  30.  * @version 0.0
  31.  * @see gfx_format
  32.  */
  33. class NS_NO_VTABLE gfxIFormats {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(GFXIFORMATS_IID)
  37.  
  38.   /**
  39.    * RGB    - duh...
  40.    */
  41.   enum { RGB = 0 };
  42.  
  43.   /**
  44.    * BGR    - same as RGB except byteswaped
  45.    */
  46.   enum { BGR = 1 };
  47.  
  48.   /**
  49.    * RGB_A1 - RGB image and 1-bit alpha mask
  50.    */
  51.   enum { RGB_A1 = 2 };
  52.  
  53.   /**
  54.    * BGR_A1 - same as RGB_A1 except byteswaped
  55.    */
  56.   enum { BGR_A1 = 3 };
  57.  
  58.   /**
  59.    * RGB_A8 - RGB image and 8-bit alpha image
  60.    */
  61.   enum { RGB_A8 = 4 };
  62.  
  63.   /**
  64.    * BGR_A8 - same as RGB_A8 except byteswaped
  65.    */
  66.   enum { BGR_A8 = 5 };
  67.  
  68.   /**
  69.    * RGBA   - packed RGBA image
  70.    */
  71.   enum { RGBA = 6 };
  72.  
  73.   /**
  74.    * BGRA   - packed RGBA image
  75.    */
  76.   enum { BGRA = 7 };
  77.  
  78. };
  79.  
  80. /* Use this macro when declaring classes that implement this interface. */
  81. #define NS_DECL_GFXIFORMATS \
  82.  
  83. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  84. #define NS_FORWARD_GFXIFORMATS(_to) \
  85.  
  86. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  87. #define NS_FORWARD_SAFE_GFXIFORMATS(_to) \
  88.  
  89. #if 0
  90. /* Use the code below as a template for the implementation class for this interface. */
  91.  
  92. /* Header file */
  93. class _MYCLASS_ : public gfxIFormats
  94. {
  95. public:
  96.   NS_DECL_ISUPPORTS
  97.   NS_DECL_GFXIFORMATS
  98.  
  99.   _MYCLASS_();
  100.  
  101. private:
  102.   ~_MYCLASS_();
  103.  
  104. protected:
  105.   /* additional members */
  106. };
  107.  
  108. /* Implementation file */
  109. NS_IMPL_ISUPPORTS1(_MYCLASS_, gfxIFormats)
  110.  
  111. _MYCLASS_::_MYCLASS_()
  112. {
  113.   /* member initializers and constructor code */
  114. }
  115.  
  116. _MYCLASS_::~_MYCLASS_()
  117. {
  118.   /* destructor code */
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124.  
  125. #endif /* __gen_gfxIFormats_h__ */
  126.